package com.hmall.feign.client;

import com.hmall.item.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "searchservice")
public interface SearchClient {
    @PostMapping("/search/additem")
    int additem(@RequestBody List<Item> item);
}
